<ion-view title="部门选择 | 2015电院学生会招新" class="main">
    <ion-content class="has-footer has-header">
        <div class="content ">
            <div class="list animate-fade-slide-in-right">
                <a  class="item item-thumbnail-left item-icon-right" ng-repeat="dep in departmentList" ng-click="showDetail(dep)">
                    <img ng-src="{{dep.thumbnail}}">
                    <h2 ng-bind="dep.name">传媒部</h2>
                    <p ng-bind="dep.describe">让感性与理性碰撞 擦出思维的火光</p>
                    <i class="icon {{(request.firstWish._id == dep._id || request.secondWish._id == dep._id) ? 'ion-ios-checkmark' : 'ion-ios-circle-outline'}} muted {{request.firstWish._id == dep._id ? 'fst-check' : ''}} {{request.secondWish._id == dep._id ? 'scd-check' : ''}}"  ng-click="doSelect(dep,$event)"></i>
                </a>

            </div>
            <ion-infinite-scroll
                    ng-if="hasMore"
                    icon="ion-loading-c"
                    on-infinite="getDepartments()"
                    distance="1%">
            </ion-infinite-scroll>

        </div>

    </ion-content>
    <div class="bar bar-footer">
        <button  ng-disabled="!request.firstWish._id " class="button button-calm button-block ink ink-dark ink-circle" ng-click="selectSubmit();">确认提交</button>
    </div>
</ion-view>